package org.jeecg.modules.monitoring.j_monitoring.controller;

import com.alibaba.fastjson.JSON;
import com.xkcoding.http.util.StringUtil;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.util.FileUtil;
import org.jeecg.modules.monitoring.j_monitoring.entity.software.BusinessSetting;
import org.jeecg.modules.monitoring.j_monitoring.service.impl.HomeService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import jakarta.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

@Api(tags = "首页接口")
@RestController
@RequestMapping("/home")
@Slf4j
public class HomeController {

    @Resource
    private HomeService homeService;

    @RequestMapping(value = "/deviceInfo", method = RequestMethod.GET)
    public Result deviceInfo() {
        return Result.ok(homeService.deviceInfo());
    }


    @RequestMapping(value = "/brandInfo", method = RequestMethod.GET)
    public Result brandInfo() {
        return Result.ok(homeService.getBrandList());
    }

}
